import Layout from '@/layout'

export default [
  {
    path: '/deviceInfo',
    component: Layout,
    redirect: "/deviceInfo/device",
    meta: {title: '设备管理', icon: 'example'},
    children: [
      {
        path: 'device',
        redirect: "/deviceInfo/device/index",
        component: () => import('@/views/deviceInfo/device/Index'),
        meta: {title: '设备列表', icon: 'table'},
        children: [
          {
            path: 'index',
            component: () => import('@/views/deviceInfo/device/List'),
            hidden: true,
          },
          {
            path: 'add',
            component: () => import('@/views/deviceInfo/device/Add'),
            meta: {title: '添加'},
            hidden: true,
          },
          {
            path: 'edit',
            component: () => import('@/views/deviceInfo/device/Edit'),
            meta: {title: '编辑'},
            hidden: true,
          },
        ]
      },
      {
        path: 'deviceType',
        redirect: "/deviceInfo/deviceType/index",
        component: () => import('@/views/deviceInfo/deviceType/Index'),
        meta: {title: '设备类型', icon: 'table'},
        children: [
          {
            path: 'index',
            component: () => import('@/views/deviceInfo/deviceType/List'),
            hidden: true,
          },
          {
            path: 'add',
            component: () => import('@/views/deviceInfo/deviceType/Add'),
            meta: {title: '添加'},
            hidden: true,
          },
          {
            path: 'edit',
            component: () => import('@/views/deviceInfo/deviceType/Edit'),
            meta: {title: '编辑'},
            hidden: true,
          },
        ]
      },
    ]
  },
]
